﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;

namespace AlltrustDinner.Pages
{
    public partial class MaterPage : System.Web.UI.MasterPage
    {

        protected USER CurrentUser = new USER();
        public USER CURRENT_USER { get { return CurrentUser; } }
        protected void Page_Load(object sender, EventArgs e)
        {

            if (!IsPostBack)
            {
                this.CurrentUser = Session["CurrentUser"] as USER;
                if (CurrentUser.RIGHT != 1)
                {
                    this.li_usermanagement.Visible = false;
                    this.li_ordermanagement.Visible = false;
                    this.li_restaurantmanagement.Visible = false;                  
                }

            }
        }
    }
}